<?php
$this->headTitle($this->T('User Login'));
$this->placeholder('content_title')->set($this->T('Please login'));

// The login messages
$flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger')->setNamespace('login');
$Message = implode('<br />', $flashMessenger->getMessages());
$this->placeholder('flash_message')->set($this->E($Message));

$this->headScript()->offsetSetFile( 100, $this->pathJs . '/ajax.js' );

$dojoConfig = Zend::initConfig('Dojo');
if ($dojoConfig->enable) {
    $this->inlineScript()->setAllowArbitraryAttributes($dojoConfig->allowArbitraryAttributes);
    $this->inlineScript()->appendFile($dojoConfig->path . '/dojo/dojo.js', 
                                      'text/javascript', 
                                      array('djConfig' => 'parseOnLoad: true, isDebug: false, usePlainJson: true'));
}

?>

<div id="userLoginForm">

    <?php echo $this->formLogin; ?>

</div>